package com.suyang.syt.model.dto;

import java.util.List;

import com.suyang.syt.model.Citys;

@SuppressWarnings("serial")
public class CitysDTO extends Citys {
	/** 扩展属性,一般是URL地址 */
	private Attributes attributes;
	/** 上级行政区域 */
	private Citys parent;
	/** 上级行政区域编号 */
	private String pcode;
	/** 上级行政区域节点状态 */
	private String pstate;
	/** 上级行政区域全拼 */
	private String pquanpin;
	/** 上级行政区域简拼 */
	private String pjianpin;
	/** 下级行政区域集合 */
	private List<CitysDTO> children;
	
	public CitysDTO() {
		
	}
	
	public CitysDTO(Citys citys) {
		this.setAttributes(new Attributes(citys.getUrl()));
		this.setChecked(citys.getChecked());
		this.setCode(citys.getCode());
		this.setCreateName(citys.getCreateName());
		this.setCreateTime(citys.getCreateTime());
		this.setIconCls(citys.getIconCls());
		this.setId(citys.getId());
		this.setJianpin(citys.getJianpin());
		this.setQuanpin(citys.getQuanpin());
		this.setLayer(citys.getLayer());
		this.setLeaf(citys.getLeaf());
		this.setModifyName(citys.getModifyName());
		this.setModifyTime(citys.getModifyTime());
		this.setName(citys.getName());
		this.setOrderIndex(citys.getOrderIndex());
		this.setState(citys.getState());
		this.setStatus(citys.getStatus());
		this.setText(citys.getText());
		this.setUrl(citys.getUrl());
		this.setPid(citys.getPid());
		this.setPtext(citys.getPtext());
	}

	public Attributes getAttributes() {
		return attributes;
	}

	public void setAttributes(Attributes attributes) {
		this.attributes = attributes;
	}

	public Citys getParent() {
		return parent;
	}

	public void setParent(Citys parent) {
		this.parent = parent;
	}

	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}

	public String getPstate() {
		return pstate;
	}

	public void setPstate(String pstate) {
		this.pstate = pstate;
	}

	public String getPquanpin() {
		return pquanpin;
	}

	public void setPquanpin(String pquanpin) {
		this.pquanpin = pquanpin;
	}

	public String getPjianpin() {
		return pjianpin;
	}

	public void setPjianpin(String pjianpin) {
		this.pjianpin = pjianpin;
	}

	public List<CitysDTO> getChildren() {
		return children;
	}

	public void setChildren(List<CitysDTO> children) {
		this.children = children;
	}

}
